#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  //QQ登录
  .koukou {
    width: 100%;
    height: 100%;
    // background-color: #ccc;
    position: absolute;
    // opacity: 0.8;

    display: none;
    .chuangkou {
      width: 400px;
      height: 400px;
      background: url(../images/qq.ll.jpg) no-repeat center center;
      position: fixed;
      left: 36%;
      top: 25%;
      border-radius: 8px;
      .guanbi {
        display: block;
        width: 50px;
        height: 20px;
        position: absolute;
        right: 0;
        top: 0;
        cursor: pointer;
        background: skyblue;
        text-align: center;
        border-top-right-radius: 8px;
      }

      h4 {
        font-size: 25px;
        color: black;
        text-align: center;
        font-weight: normal;
      }
      form {
        width: 300px;
        height: 200px;
        margin: auto;

        input {
          width: 295px;
          height: 40px;
          margin-top: 30px;
          border-radius: 8px;
          padding-left: 5px;
        }
      }
      .btn {
        display: block;
        width: 250px;
        height: 30px;
        background-color: teal;
        border-radius: 8px;
        border: none;
        outline: none;
        cursor: pointer;
        margin: auto;
      }
    }
  }
}

// header头部
header {
  width: 100%;
  background-color: #1f1f1f;
  height: auto;

  .w1240 {
    width: 1440px;
    min-width: 1200px;
    max-width: 1590px;
    height: auto;
    margin: auto;
    background-color: #1f1f1f;
  }
  .nt_top {
    dl {
      display: flex;

      dt {
        width: 24px;
        height: 24px;
        display: inline-block;
        background: url(../images/ico-comm.png) no-repeat;
        background-position: 0 -93px;
      }
      dd {
        a {
          color: #a7a7a7;
        }
      }
    }
  }
  .nt_cen {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    background: url(../images/logo-pubg.png) no-repeat center center;
    .cen_le {
      height: 60px;
      width: auto;
      .ico {
        display: inline-block;
        width: 21px;
        height: 21px;
        background: url(../images/ico-comm.png) no-repeat;
        background-position: 0 -279px;
        vertical-align: middle;
      }
      a {
        color: #f6f7ef;
      }
    }
    .cen_ri {
      width: auto;
      height: auto;
      width: 310px;
      height: 34px;
      background: #383838;
      display: flex;
      justify-content: space-between;
      input {
        margin-left: 9px;
        width: 228px;
        height: 34px;
        line-height: 34px;
        font-size: 14px;
        color: #aaa;
        background: #383838;
      }
      a {
        width: 73px;
        height: 34px;
        background: #f3ad14;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        i {
          display: block;
          width: 20px;
          height: 20px;
          background: url(../images/spr-com.png) no-repeat;
          background-position: -44px -26px;
        }
      }
    }
  }

  .nt_btn {
    height: auto;
    display: flex;
    justify-content: space-between;
    .all_l {
      height: 50px;
      width: auto;
      line-height: 50px;
      cursor: pointer;
      i {
        margin-right: 18px;
        vertical-align: middle;
        display: inline-block;
        width: 22px;
        height: 17px;
        background: url(../images/spr-com.png) no-repeat;
        background-position: -26px -2px;
      }
      span {
        color: #f6f7ef;
      }
    }
    .nav_c {
      height: 50px;
      width: auto;
      // margin-left: 270px;
      display: flex;
      line-height: 50px;
      text-align: center;
      li {
        margin: 0 25px;
        width: auto;
        height: 100%;
        a {
          color: #fff;
          &:hover {
            color: #f3ad14;
          }
        }
      }
    }
    // 购物车登陆后显示
    .nav_r {
      width: auto;
      line-height: 50px;
      font-size: 14px;
      color: #f2f2f2;
      float: right;
      display: flex;
      opacity: 0; //透明度显示
      i {
        margin-right: 7px;
        margin-top: 14px;
        display: block;
        width: 20px;
        height: 20px;
        background: url(../images/spr-com.png) no-repeat;
        background-position: -2px -2px;
      }
      span {
        display: block;
      }
      div {
        color: #f3ad14;
      }
    }
  }
}

// main内容
main {
  height: auto;
  /* 
 使用方法
@include triangle(Down,3px,#6c6c6c);
@include vCenter(); 
*/
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  /* 预定义字号 */
  $font-s: 14px;
  $font-m: 16px;
  $font-l: 18px;
  $font-xl: 20px;
  $font-title: 28px;
  $font-price: 36px;
  /*水平垂直居中*/
  @mixin center() {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  /*水平居中*/
  @mixin hCenter() {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  /*垂直居中*/
  @mixin vCenter() {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  /*三角形*/
  @mixin triangle($dir, $width, $color) {
    width: 0;
    height: 0;
    border-width: $width;
    border-style: solid solid solid solid;
    @if ($dir == Up) {
      border-color: transparent transparent $color transparent;
    } @else if($dir == Down) {
      border-color: $color transparent transparent transparent;
    } @else if($dir == Left) {
      border-color: transparent $color transparent transparent;
    } @else if($dir == Right) {
      border-color: transparent transparent transparent $color;
    }
  }
  /* 容器版心 */
  .container {
    width: 1280px;
    margin: 0 auto;
  }
  a {
    text-decoration: none;
    color: #000;
  }
  body {
    color: #333;
    font: 14px/30px Microsoft YaHei;
    line-height: 30px;
  }
  /* 主容器 */
  .mainWrap {
    .detail_nav {
      width: 100%;
      padding: 30px 0 50px;
      color: #999;
      a {
        color: #999;
        &.cur {
          color: #333;
        }
      }
    }
    /* 商品介绍 */
    .product_intro {
      padding: 0 30px;
      width: 100%;
      display: flex;
      justify-content: space-between;
      /* 商品图片预览板块 */
      .product_preview {
        overflow: hidden;
        width: 460px;
        .goodsImg {
          width: 100%;
          height: 438px;
          border: 1px solid #f2f2f2;
          &:hover {
            cursor: url("../images/zoomin.png"), pointer;
          }
          img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
        .previewBox {
          width: 100%;
          height: 100px;
          display: flex;
          justify-content: flex-start;
          margin-top: 50px;
          a {
            width: 74px;
            height: 70px;
            margin-right: 10px;
            border: 1px solid rgb(232, 227, 227);
            &.curPreview {
              border-width: 3px;
              // border-color: #e69800;
              img {
                border: none;
              }
            }
            &:hover {
              border-width: 3px;
              border-color: #e69800;
              img {
                border: none;
              }
            }
            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
              border: 2px solid #fff;
            }
          }
        }
      }
      /* 商品规格信息板块 */
      .product_info {
        width: 720px;
        .pord_name {
          font-size: $font-title;
          font-weight: 400;
        }
        .pord_price {
          margin-top: 25px;
          padding-bottom: 10px;
          border-bottom: 1px dashed #eee;
          .pord_dispri {
            color: #f74f4a;
            font-size: $font-price;
          }
          .pord_orpri {
            margin-left: 10px;
            font-size: $font-m;
            color: #999;
            text-decoration: line-through;
          }
        }
        .pord_detailbox {
          display: flex;
          border-bottom: 1px dashed #eee;
          justify-content: space-between;
          align-items: center;
          height: 65px;
          color: #999;
          span {
            color: #333;
          }
          .icon-pingfen {
            font-size: $font-xl;
            color: #eee;
            cursor: pointer;
            &.show {
              color: #ffd92c;
            }
          }
          .star {
            font-size: $font-xl;
            color: #ffd92c;
          }
        }
        .pord_size {
          display: flex;
          height: 60px;
          justify-content: flex-start;
          align-items: center;
          & > span {
            color: #999;
          }
          ul {
            margin-left: 20px;
            list-style: none;
            li {
              cursor: pointer;
              margin-right: 20px;
              width: 78px;
              height: 34px;
              text-align: center;
              line-height: 34px;
              float: left;
              border: 1px solid #eee;
              &.cursize {
                border: 2px solid #ffd92c;
              }
            }
          }
        }
        .pord_num {
          height: 60px;
          color: #999;
          display: flex;
          align-items: center;
          .edit {
            display: flex;
            justify-content: center;
            width: 130px;
            height: 36px;
            border: 1px solid #eee;
            margin: 0 20px;
            a {
              text-align: center;
              flex-grow: 6;
              font-size: $font-l;
              font-weight: bold;
            }
            input {
              text-align: center;
              flex-grow: 5;
              border: none;
              border-right: 1px solid #eee;
              border-left: 1px solid #eee;
              &:focus {
                outline: none;
              }
            }
          }
        }
        .pord_btn {
          margin-top: 20px;
          display: flex;
          align-items: center;
          .add {
            cursor: pointer;
            width: 200px;
            height: 56px;
            background: #000;
            border: none;
            margin-right: 20px;
            color: #fff;
            font-size: $font-xl;
            &:hover {
              opacity: 0.9;
            }
          }
          .buy {
            cursor: pointer;
            width: 200px;
            height: 56px;
            background: #e69800;
            border: none;
            margin-right: 20px;
            color: #fff;
            font-size: $font-xl;
            &:hover {
              opacity: 0.9;
            }
          }
          .collect {
            cursor: pointer;
            width: 84px;
            height: 30px;
            line-height: 28px;
            border: 2px solid #ddd;
            border-radius: 30px;
            font-size: 14px;
            color: #888;
            background: none;
            vertical-align: middle;
            i {
              margin-right: 5px;
              color: #ddd;
            }
          }
        }
      }
    }
    /* tab选项卡 */
    .product_tab {
      padding: 0 30px;
      width: 100%;
      .tab_nav {
        width: 100%;
        height: 72px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid #eee;
        .items {
          width: 235px;
          height: 71px;
          line-height: 71px;
          text-align: center;
          color: #333;
          font-size: 18px;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          &.curtab {
            &::after {
              position: absolute;
              bottom: -1px;
              left: 50%;
              transform: translateX(-50%);
              display: block;
              content: "";
              width: 40px;
              height: 5px;
              background: #e69800;
            }
          }
        }
      }
      .tab_content {
        width: 100%;
        padding: 10px;
        .content_items {
          color: #777;
          display: none;
          .parameter {
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            li {
              width: 23%;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
          }
          .detailbox {
            text-align: center;
          }
          .comment_box {
            text-align: center;
            font-size: $font-xl;
            i {
              font-size: 25px;
              color: #eee;
            }
            .start {
              margin-left: 10px;
              color: #ffca11;
              font-size: 28px;
            }
          }
          .contact {
            & > p {
              margin-bottom: 10px;
              button {
                cursor: pointer;
                margin-bottom: 10px;
                display: block;
                width: 100px;
                height: 28px;
                line-height: 28px;
                border: 1px solid #eee;
                border-radius: 2px;
                background: none;
                color: #777;
                text-align: center;
              }
            }
          }
          &.curcontent {
            display: block;
          }
        }
      }
    }
  }
}

// footer尾部
footer {
  width: 100%;
  background-color: #1b1b1b;
  height: auto;
  display: flex;
  flex-direction: column;
  a {
    color: #777;

    &:hover {
      color: white;
    }
  }

  .footer_ieb {
    background: #1b1b1b;
    color: #777;
    font-size: 12px;
    line-height: 24px;
    margin-top: 40px;

    .clearfix {
      width: 1440px;
      margin: auto;
      border-bottom: 1px solid #606060;

      .footer-djc {
        margin-top: 10px;
        width: 213px;
        height: 64px;
        display: block;
        img {
          display: block;
          width: 187px;
          height: 56px;
        }
      }
      .footer-info {
        height: 135px;
        width: 395px;
        font-size: 14px;
        line-height: 30px;
        margin: 50px 0 0 20px;
        border-left: 1px solid #606060;
        border-right: 1px solid #606060;
        float: left;
        li {
          // width: 118px;
          height: 55px;
          padding: 0 38px;
          float: left;
        }
      }
      .footer-code {
        float: left;
        line-height: 62px;
        padding: 50px 0 20px 33px;
        li {
          float: left;
          font-size: 16px;
          color: #fff;
          padding: 0 45px;
          text-align: center;
        }
        .pr0 {
          padding-right: 0;
        }
      }
    }
  }
  .footer_ied {
    background: #1b1b1b;
    font-size: 12px;
    line-height: 24px;
    padding: 30px 0 40px;
    text-align: center;
    p {
      a {
        color: #777;
      }
    }
  }
}
  .topnav {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2000;
  margin: 0 20px 25px 0;
  // display: none;
}

.gou{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 240px;
  height: 240px;
  background-color: rgba(0,0,0,.5);
  display: none;
  
  color: red;
  font-size: 24px;
  border-radius: 20px;
  text-align: center;
  line-height: 26px;
  img{
    width: 100px;
    display: block;
    margin: 40px auto;
  }
}








